<div class='span5'>
  <h2>用户注册</h2>

  <%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: {class: 'form-horizontal'}) do |f| %>
    <%= f.error_notification %>

    <div class="form-inputs">
  	  <%= f.input :nickname, :required => true, :label => '昵称' %>
      <%= f.input :email, :required => true, :autofocus => true, :label => '邮箱' %>
      <%= f.input :password, :required => true, :label => '密码'  %>
      <%= f.input :password_confirmation, :required => true, :label => '重复密码'  %>
    </div>

    <div class="form-actions">
      <%= f.button :submit, "立即注册", class: 'btn btn-primary' %>
    </div>
  <% end %>
  <%= render "layouts/social_connect" %>

</div>

